package com.lai.pojo;

import com.lai.pojo.enumeration.TransactionType;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Date;

public class Transaction {
    private int id;
    private int userId;
    private BigDecimal amount;
    private TransactionType type;
    private Date time;

    public Transaction(int id, int userId, BigDecimal amount, TransactionType type) {
        this.id = id;
        this.userId = userId;
        this.amount = amount;
        this.type = type;
    }

    public Transaction() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int walletId) {
        this.userId = walletId;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public TransactionType getType() {
        return type;
    }

    public void setType(TransactionType type) {
        this.type = type;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Timestamp time) {
        this.time = time;
    }
}